package cn.suzhang.designpatterns.component;

import sun.reflect.generics.reflectiveObjects.NotImplementedException;

/**
 * 图片叶子节点
 * 
 * @author suzhang
 *
 */
public class ImageFileLeaf extends AbstractFileComponent {

	public ImageFileLeaf(String fileName) {
		super(fileName);
	}

	@Override
	protected void add(AbstractFileComponent fileComponent) {
		throw new NotImplementedException();
	}

	@Override
	protected void remove(AbstractFileComponent fileComponent) {
		throw new NotImplementedException();
	}

	@Override
	protected void killVirus() {
		System.out.println("图片杀毒");
	}

}
